package com.etc.entity;

import org.springframework.stereotype.Component;

import java.util.Objects;

/**
 * (Video)实体类
 *
 * @author makejava
 * @since 2021-10-18 22:32:00
 */
@Component
public class Video  {
    private static final long serialVersionUID = -24420149705174533L;
    /**
     * 视频
     */
    private String videoId;
    /**
     * 视频名
     */
    private String videoName;
    /**
     * 分类
     */
    private Type typeId;
    /**
     * 视频封面
     */
    private String videoImg;
    /**
     * 视频路径
     */
    private String videoPath;


    public String getVideoId() {
        return videoId;
    }

    public void setVideoId(String videoId) {
        this.videoId = videoId;
    }

    public String getVideoName() {
        return videoName;
    }

    public void setVideoName(String videoName) {
        this.videoName = videoName;
    }

    public Type getTypeId() {
        return typeId;
    }

    public void setTypeId(Type typeId) {
        this.typeId = typeId;
    }

    public String getVideoImg() {
        return videoImg;
    }

    public void setVideoImg(String videoImg) {
        this.videoImg = videoImg;
    }

    public String getVideoPath() {
        return videoPath;
    }

    public void setVideoPath(String videoPath) {
        this.videoPath = videoPath;
    }

    public Video() {
    }

    public Video(String videoId, String videoName, Type typeId, String videoImg, String videoPath) {
        this.videoId = videoId;
        this.videoName = videoName;
        this.typeId = typeId;
        this.videoImg = videoImg;
        this.videoPath = videoPath;
    }
    public Video(String videoName, Type typeId, String videoImg, String videoPath) {
        this.videoName = videoName;
        this.typeId = typeId;
        this.videoImg = videoImg;
        this.videoPath = videoPath;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Video video = (Video) o;
        return Objects.equals(videoId, video.videoId) &&
                Objects.equals(videoName, video.videoName) &&
                Objects.equals(typeId, video.typeId) &&
                Objects.equals(videoImg, video.videoImg) &&
                Objects.equals(videoPath, video.videoPath);
    }

    @Override
    public int hashCode() {
        return Objects.hash(videoId, videoName, typeId, videoImg, videoPath);
    }

    @Override
    public String toString() {
        return "Video{" +
                "videoId='" + videoId + '\'' +
                ", videoName='" + videoName + '\'' +
                ", typeId=" + typeId +
                ", videoImg='" + videoImg + '\'' +
                ", videoPath='" + videoPath + '\'' +
                '}';
    }
}

